<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>SITE</title>
    <meta name="decorator" content="default"/>
    <%@ include file="/WEB-INF/views/include/dialog.jsp" %>
</head>
<body>

<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/cms/site/">站点列表</a></li>
    <li><a href="${ctx}/cms/site/form">站点添加</a></li>
</ul>

<tags:message content="${message}"/>

<table class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>名称</th>
        <th>标题</th>
        <th>描述</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <c:forEach items="${list}" var="site">
        <tr>
            <td>${site.name}</td>
            <td>${site.title}</td>
            <td>${site.description}</td>
            <td><a href="javascript:if(confirm('确定要删除？')){window.location.href='delete?id=${site.id}'}">删除</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>
